import { combineReducers } from '../vendors/redux.min.js'
import reduceReducers from '../vendors/reduce-reducers.js'

// import reducers
import {
  // action
  UPDATE_PHONE_NUMBER,
  // reducer
  personalReducer
} from './models/personal-info.js'

// ------------------------------------
// crossReducer start
// ------------------------------------
function crossReducer(state, action) {
  switch (action.type) {
    default:
    return state
  }
}
// ------------------------------------
// crossReducer end
// ------------------------------------

export const rootReducer = reduceReducers(
  combineReducers({
    personal: personalReducer
  }),
  crossReducer
)
